<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
	<th:block th:include="include :: header('修改供应商')"/>
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-supplier-edit" th:object="${supplier}">
            <input id="supplierId" name="supplierId" th:field="*{supplierId}" type="hidden">
			<div class="form-group">
				<label class="col-sm-3 control-label">供应商编码：</label>
				<div class="col-sm-8">
					<input id="supplierCode" name="supplierCode" th:field="*{supplierCode}" class="form-control" type="text" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">供应商名称：</label>
				<div class="col-sm-8">
					<input id="supplierName" name="supplierName" th:field="*{supplierName}" class="form-control" type="text" required>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/supplier";

		function submitHandler(){
	        if($.validate.form()){
	            $.operate.save(prefix + "/edit", $('#form-supplier-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
